// export const delay = (time = 2000) => new Promise(resolve => setTimeout(resolve, time))

// 完整写法
export const delay = (time = 2000) => new Promise(resolve => {
  setTimeout(() => {
    resolve('')
  }, time)
})
